<tagLib name="strends" />
<include file="Public:header" />
<style type="text/css">
	.tags_ul li{
		float:left;
		margin: 5px 0 0 5px;
		padding: 5px 5px 4px 5px;
		white-space: nowrap;
	}
</style>

<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/caitu_insert')}" enctype="multipart/form-data">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<th width="150">{%TITLE}</th>
		<td><input type="text" class="textinput" name="title" value="" style="width:400px;" /></td>
	</tr>
	<tr>
		<th width="150">{%SUB_TITLE}</th>
		<td><input type="text" class="textinput" name="sub_title" value="" style="width:400px;" /></td>
	</tr>
	<tr>
		<th>{%CID}</th>
		<td>
			<select name="cid">
				<foreach name="category_list" item="category_item">
				<option value="{$category_item.id}">{$category_item.name}</option>
				</foreach>
			</select>
		</td>
	</tr>
	
	<tr>
	<th>标签类型：</th>
		<td>
			<volist name='tag_cate' id='v' key='k'>
				<div class="albumtagdiv">
				<span class="albumtagspan">{$v.cate_name}</span><br/>
				<ul class="tags_ul">
				<volist name="tag_list[$v['cate_id']]" id='val'>
					<li><span><input type="checkbox" name='tag_list[]' value="{$val.cate_id}"/>{$val.cate_name}</span></li>
				</volist>
				</ul>
				</div>
			</volist>
		</td>
	</tr>	
	<tr>
		<th>{%SOURCE}</th>
		<td><input type="text" class="textinput" name="source" value="{$pageurl}" size="60" /></td>
	</tr>		
	<tr>
		<th>{%SORT}</th>
		<td>
			<input type="text" class="textinput" name="sort"  name="sort" rows="5" value=""/>
		</td>
	</tr>
	
	<tr>
		<th>{%GRID}</th>
		<td>
			<textarea class="areainput" name="grid" rows="5"></textarea>
		</td>
	</tr>
	
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="submit" class="submit_btn" value="{%ADD_SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
			<input type="hidden" name="imgs" value="{$imgs}" />
			<input type="hidden" name="purl" value="{$pageurl}" />
		</td>
	</tr>
</table>
</form>

<include file="Public:footer" />